package cn.wolfcode.cloud.shop.feign;


import cn.wolfcode.cloud.shop.domain.User;
import cn.wolfcode.cloud.shop.feign.hystrix.UserFeignHystrix;
import cn.wolfcode.cloud.shop.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "member-server",fallback = UserFeignHystrix.class)
public interface UserFeignApi {

    @RequestMapping("/refreshToken")
    Result<Boolean> refreshToken(@RequestParam("token") String token);

    @RequestMapping("/findByToken")
    Result<User> findByToken(@RequestParam("token") String token);
}
